<!---{
"title": "quick-lint-js LSP server documentation"
}--->

<!DOCTYPE html>
<!-- Copyright (C) 2020  Matthew "strager" Glazar -->
<!-- See end of file for extended copyright information. -->
<html lang="en">
  <head>
    <%- await include("../../common-head.ejs.html") %>
    <script>
      //<%
      let fs = await import("fs");
      let asciidoctor = (await import("@asciidoctor/core")).default();

      let adoc = await fs.promises.readFile(absoluteFilePath("../../../../docs/lsp.adoc"), "utf-8");
      let lspDocumentation = asciidoctor.convert(adoc);
      //%>
    </script>
    <link href="../../main.css" rel="stylesheet" />
    <style>
      table {
        margin-left: auto;
        margin-right: auto;
      }
      table th,
      table td {
        padding: 0.125rem 0.5rem;
      }
      table tbody th {
        text-align: left;
      }
      table tbody p {
        margin: 0;
      }
    </style>
  </head>

  <body class="side-bar-nav">
    <header><%- await include("../../common-nav.ejs.html") %></header>

    <main>
      <h1><%= meta.title %></h1>
      <p>
        This page documents the quick-lint-js Language Server Protocol (LSP)
        server.
      </p>
      <p>
        This page is written for people writing editor plugins. If you just want
        to use quick-lint-js in your editor, follow one of these installation
        guides instead:
      </p>
      <ul>
        <li>
          <a href="../../install/vscode/"
            ><qljs-icon name="vscode" size="19" /> Visual Studio Code</a
          >
        </li>
        <li>
          <a href="../../install/vscodium/"
            ><qljs-icon name="open-vsx" size="19" /> VSCodium</a
          >
        </li>
        <li>
          <a href="../../install/vim/"
            ><qljs-icon name="vim" size="19" /> Vim</a
          >
        </li>
        <li>
          <a href="../../install/neovim/"
            ><qljs-icon name="neovim" size="19" /> Neovim</a
          >
        </li>
        <li>
          <a href="../../install/sublime/"
            ><qljs-icon name="sublime-text" size="19" /> Sublime Text</a
          >
        </li>
        <li>
          <a href="../../install/emacs/"
            ><qljs-icon name="emacs" size="19" /> Emacs</a
          >
        </li>
        <li>
          <a href="../../install/kate/"
            ><qljs-icon name="kate" size="19" /> Kate</a
          >
        </li>
      </ul>

      <%- lspDocumentation; %>
    </main>

    <footer><%- await include("../../common-footer-nav.ejs.html") %></footer>
  </body>
</html>

<!--
quick-lint-js finds bugs in JavaScript programs.
Copyright (C) 2020  Matthew "strager" Glazar

This file is part of quick-lint-js.

quick-lint-js is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

quick-lint-js is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with quick-lint-js.  If not, see <https://www.gnu.org/licenses/>.
-->
